const CreateExamRequest = {
    name: {
        type: 'string',
        required: true,
        description: '试卷名称',
        example: '周考一模拟考试',
        format: /^[\w\W]{2,20}$/,
    },
    etid: {
        type: 'string',
        required: true,
        description: '考试类型：月考、周考一、周考二 ... ',
        example: 'dW1T-gVoh-KqKt-2U1r',
        format: /^[\w-]{19}$/,
    },
    sid: {
        type: 'string',
        required: true,
        description: '考试的课程：基础Node、高级Node、高级JS',
        example: 'SBt6-TPST-4owz-IX2Y',
        format: /^[\w-]{19}$/,
    },
    num: {
        type: 'string',
        required: true,
        description: '需要出多少道题',
        example: 8,
        format: /^[\d]+$/,
    },
    start: {
        type: 'string',
        required: true,
        description: '考试开始时间',
        example: '1607388787000',
        format: /^[\d]{13}$/,
    },
    end: {
        type: 'string',
        required: true,
        description: '考试结束时间',
        example: '1608943987000',
        format: /^[\d]{13}$/,
    },
};

module.exports = {
    CreateExamRequest,
};
